package homework.day03;

import java.io.*;

public class Write {
    public static void main(String[] args) throws IOException {
        File file = new File("image.png");
        long len = file.length();
        FileInputStream fis = new FileInputStream(file);
        byte[] data = new byte[(int)len];
        fis.read(data);
        FileOutputStream fos = new FileOutputStream("image-ddd.png");
        fos.write(data);
        fis.close();
        fos.close();

    }
}
